package com.gzit.view.tag;

import android.view.View.MeasureSpec;

public class DebugTool {

	public static String getMessureMode(int measureSpec) {

		int mode = MeasureSpec.getMode(measureSpec);
		String modeStr = "";
		switch (mode) {
		case MeasureSpec.AT_MOST:
			modeStr = "AT_MOST";
			break;

		case MeasureSpec.EXACTLY:
			modeStr = "EXACTLY";
			break;

		case MeasureSpec.UNSPECIFIED:
			modeStr = "UNSPECIFIED";

		}

		return modeStr;

	}

}
